package com.myapplication.ui.homefragment.activities;

import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

import com.myapplication.R;

/**
 * Created by zitaojiang on 2016/10/17.
 */
public class Activity_Notification extends AppCompatActivity {
    private ImageView iv_tx,iv_tx_back;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notification);
        iv_tx= (ImageView) findViewById(R.id.iv_tx);
        iv_tx_back= (ImageView) findViewById(R.id.iv_tx_back);
        iv_tx.setBackgroundResource(R.drawable.tx_donghua);
        AnimationDrawable drawable= (AnimationDrawable) iv_tx.getBackground();
        drawable.start();
        iv_tx_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

}
